package auctioncentral;

import java.util.Date;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 * test class for the Event class.
 * @author harris
 * @version 12
 */
public class BidTest {

	/**
	 * the bid object to use for testing.
	 */
	private Bid my_bid;
	
	/**
	 * cost of the bid.
	 */
	private double my_amount = 1.00;
	
	/**
	 * item that is being bid on.
	 */
	private int my_item = 123;

	/**
	 * Initializes up all of the fields.
	 */
	@Before
	public void setup() {
		my_bid = new Bid(my_amount, "meep", my_item);
	}
	
	/**
	 * tests to see if the amount getter correctly returns the bid amount.
	 */
	@Test
	public void testAmountGetter() {	
		assertTrue(my_bid.getAmount() == 1.00);
		assertTrue(my_bid.getBidder().equals("meep"));
		assertTrue(my_bid.getItemId() == 123);
	}
}